package org.fing.edu.uy.esbadp.core.utils;

import java.io.Serializable;

/**
 * 
 * @author dev
 * Implementacion de un nodo de la lista circular.
 * 
 */
public class CircularListNode<T> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1836158543161433939L;
	private CircularListNode<T> previous;
	private CircularListNode<T> next;
	private T data;
	
	public CircularListNode(CircularListNode<T> next ,  T data){		
		this.next = next;
		this.data = data;		
	}

	public CircularListNode<T> getPrevious() {
		return previous;
	}

	public void setPrevious(CircularListNode<T> previous) {
		this.previous = previous;
	}

	public CircularListNode<T> getNext() {
		return next;
	}

	public void setNext(CircularListNode<T> next) {
		this.next = next;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
	
	
	
	
}
